package com.chiyoyo.shiro.framework;

import lombok.Getter;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author chil
 * 2024/8/6
 */
@Getter
public class MyAuthenticationToken implements AuthenticationToken {

    private final String value;

    public MyAuthenticationToken(String value) {
        this.value = value;
    }

    @Override
    public Object getPrincipal() {
        return value;
    }

    @Override
    public Object getCredentials() {
        return value;
    }
}

